package com.ssyt.yt1.day20.enumuration;

/**
 * 利用枚举可以简单常量的定义
 * 
 * @author Administrator
 *
 */
class Color1 {

	public static final String RED = "RED";
	public static final String GREEN = "GREEN";
	public static final String BLUE = "BLUE";
}

interface Color2 {

	String RED = "RED";
	String GREEN = "GREEN";
	String BLUE = "BLUE";
}

enum Color3 {

	RED, GREEN, BLUE
}

public class EnumDemo1 {

	public static void main(String[] args) {
		System.out.println(Color1.RED);
		System.out.println(Color2.GREEN);
		System.out.println(Color3.BLUE);
	}
}
